<template>
  <div class="comment-card">
    <div class="card-content">
      <p class="comment-text">{{ comment }}</p>
    </div>
  </div>
</template>

<script setup>
defineOptions({
  name: 'CommentIListItem',
})
defineProps({
  comment: {
    type: String,
    default: '默认评论',
  }
})
</script>

<style scoped lang="scss">
.comment-card {
  margin: 12px 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
  overflow: hidden;
  
  &:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
  }
}

.card-content {
  padding: 16px;
  position: relative;
  
  &::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 24px;
    color: #ffc400;
    font-family: serif;
    opacity: 0.3;
  }
}

.comment-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding-left: 20px;
  position: relative;
  
  &::after {
    content: '"';
    position: absolute;
    bottom: -8px;
    right: 0;
    font-size: 24px;
    color: #ffc400;
    font-family: serif;
    opacity: 0.3;
  }
}
</style>